package cn.hhz._05weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserRegDTO {
    @NotNull(message = "用户名不能为空值")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    //@Pattern(regexp = "",message = "")自定义规则
    @NotNull(message = "用户名不能为空值")
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "昵称",required = true)
    private String nickname;
}
